import { createPinia } from 'pinia'
import type { App } from 'vue'
import useLoginStore from '@/stores/login/login.ts'

const pinia = createPinia()

function  registerStore(app: App<Element>) {
  // 使用pinia
  app.use(pinia)
  //  加载本地数据
  const loginStore = useLoginStore()
  loginStore.loadLocalCacheAction()
}

export default registerStore
